package grailsforum

class User {

    String email
    String firstname
    String lastname
    String password

    static constraints = {
        email(email: true, nullable: false, blank: false)
        password(nullable: false, blank: false, size: 5..20)
        firstname(nullable: false, blank: false, size: 2..20)
        lastname(nullable: false, blank: false, size: 2..20)
    }

    static hasMany = [posts: Post]




}
